<template>
  <el-carousel :interval="4000" type="card" height="350px">
    <el-carousel-item v-for="item in items" :key="item.id">
      <h3 class="medium"><img :src="item.name"></h3>
    </el-carousel-item>
  </el-carousel>
</template>
<script>
  export default {
    name: "Header",
    data(){
      return{
        items:[
          {id:1,name:require("../../../assets/img/2.1.jpg")},
          {id:2,name:require("../../../assets/img/2.2.jpg")},
          {id:3,name:require("../../../assets/img/2.3.jpg")},
          {id:4,name:require("../../../assets/img/2.4.png")},
          {id:5,name:require("../../../assets/img/2.5.png")},
          {id:6,name:require("../../../assets/img/2.6.png")}
        ]
      };
    }
  }
</script>

<style>
  .el-carousel__item h3 {
    color: #475669;
    font-size: 14px;
    opacity: 0.75;
    line-height: 200px;
    margin: 0;
  }

  .el-carousel__item:nth-child(2n) {
    background-color: #99a9bf;
  }

  .el-carousel__item:nth-child(2n+1) {
    background-color: #d3dce6;
  }
</style>

